#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//#include<string.h>,windows.h里包含了strlen函数
#include<windows.h>
#include<stdlib.h>
int main()
{
	char arr1[] = "welcome to china!";
	char arr2[] = "#################";
	int left = 0;
	//int right = sizeof(arr1) / sizeof(arr1[0]) - 2; 因为arr1 = [w e l ****** c h i n a \0 ]末尾有\0，所以减2；
	int right = strlen(arr1) - 1;
	while (left <= right)
	{
		arr2[left] = arr1[left];
		arr2[right] = arr1[right];
		printf("%s\n", arr2);
		Sleep(500);//毫秒，需要头文件windows.h
		system("cls");//刷屏，需要头文件stdlib.h
		left++;
		right--;
	}
	return 0;
}